/* 容器布局 */
.container {
    display: flex;
    gap: 20px; /* 左右间距 */
    padding: 20px;
}

/* 左侧导航栏样式 */
.sidebar {
    width: 200px;
    background-color: #f0f0f0;
    padding: 20px;
    height: 600px; /* 与聊天区域保持一致高度 */
    border-radius: 8px;
}

.nav-item {
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-item img {
    vertical-align: middle;
}

/* 右侧主内容区域 */
.main-content {
    flex: 1;
    width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center; /* 水平居中 */
}
#chat-box {
    width: 800px;
    margin: 0 auto;
    height: 600px;
    border: 1px solid #ccc;
    overflow-y: auto;
    padding: 15px;
    background-color: white;
}

.message {
    margin: 10px 0;
    display: flex;
    flex-direction: column;
}

.user {
    align-items: flex-end;
}

.ai {
    align-items: flex-start;
}

.bubble {
    max-width: 70%;
    padding: 10px 15px;
    border-radius: 10px;
    line-height: 1.5;
    word-wrap: break-word;
}

.user .bubble {
    background-color: #dcf8c6;
    color: black;
}

.ai .bubble {
    background-color: #e5e5ea;
    color: black;
}

#input-form {
    width: 600px;
    margin: 20px auto;
    display: flex;
}

#user-input {
    flex: 1;
    padding: 10px;
    font-size: 16px;
}

#send-btn {
    padding: 10px 20px;
    font-size: 16px;
}